var express = require('express');
var router = express.Router();

var { userLogin, userRegister } = require('../controller/user')
var { articleTalk } = require('../controller/userNeedCheck')
var { checkUser} = require('../util/middleware')
/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

router.post('/login', userLogin);
router.post('./register', userRegister);
router.post('./article/talk', articleTalk);
router.get('/user',checkUser,require('./userNeedCheck'))

module.exports = router;
